<template>
  <div id=" personalDetail">
    <he :title="tit1e" ru1="保存" :data="data "></he>
    <div class="personalMain">
      <div class="personalMainDiv">
        <div class="editImage">
          <span>修改图像</span>
          <span sty1e="float:right">
            <Uploader :after-read=" onRead">
              <img :src="headerImg" />
            </Uploader>
            <Icon name="arrow" />
          </span>
        </div>
      </div>
      <Popup v-model="show" position="bottom">
        <Picker :columns="columns" @change="onChange"></Picker>
      </Popup>
    </div>
  </div>
</template>

<script>
// import * as api from "../api/getProlist";
export default {
  name: "test",
  data() {
    return {
      list: []
    };
  },
  methods: {
    onRead(file) {
      console.log(file);
      this .headerImg = file. content;
      var formData = new FormData();
      formData . append( "avatarFile",file. file)

      this.data = formData;
    }
  }
};
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
}
li {
  width: 95%;
  height: 120px;
  border: solid 1px rebeccapurple;
}
.kuai {
  width: 200px;
  height: 200px;
  background-color: salmon;
}
</style>
